This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.
This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.
The list of the themes | Global methods by category | Global methods by name | The list of the classes | The list of the controls |
class KeyChainManager | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
A class for the functions of the keychain manager. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddGenericPassword(parameter as KeyChainRequest) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Adds a new generic password to the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The AddGenericPassword function adds a new generic password to the default keychain. Required parameters to identify the password are serviceName and accountName, which are application-defined strings. AddGenericPassword returns a reference to the newly added item. You can use AddGenericPassword to add passwords for accounts other than Internet or Appleshare. For example, you might add passwords for your database or scheduling programs. From the KeyChainRequest object, the properties servicename, accountname and password. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddInternetPassword(parameter as KeyChainRequest) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Adds a new Internet server password to the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The AddInternetPassword function adds a new Internet server password to the default keychain. Required parameters to identify the password are serviceName and accountName (you cannot pass "" for both parameters). In addition, some protocols may require an optional securityDomain when authentication is requested. AddInternetPassword returns a reference to the newly added item. AddInternetPassword will automatically call the Unlock function to display the Unlock Keychain dialog box if the keychain containing the password is currently locked. From the KeyChainRequest object, the properties servername, securitydomain, accountname, port, protocol, authtype and password. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddInternetPasswordWithPath(parameter as KeyChainRequest) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Adds a new Internet server password with a specified path to the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The AddInternetPasswordWithPath function enables you to specify path information when adding a new Internet server password to the default keychain. Required parameters to identify the password are serviceName and accountName (you cannot pass "" for both parameters). In addition, some protocols may require an optional securityDomain when authentication is requested. AddInternetPasswordWithPath returns a reference to the newly added item. AddInternetPasswordWithPath will automatically call the unlock function to display the Unlock Keychain dialog box if the keychain containing the password is currently locked. From the KeyChainRequest object, the properties servername, securitydomain, accountname, path, port, protocol, authtype and password. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
available as boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Allways false. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Wether the keychain manager is available. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountKeychains as integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Determines the number of available keychains. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
This function reports the number of keychains known to the Keychain Manager. These keychains are created by the function CreateKeychain and placed in the Keychains Folder in the Preferences Folder, inside the active System Folder. function result: The number of available keychains. This includes all keychains in the Keychains folder, as well as any other keychains known to the Keychain Manager. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CreateKeyChain(password as string) as KeyChain | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Creates an empty keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Password is a string representing the password string which will be used to protect the new keychain. If you pass "", the Keychain Setup dialog box will be displayed to obtain it. The CreateKeychain function creates an empty keychain. The keychain and password parameters are optional. If user interaction to create a keychain is posted, the newly-created keychain is automatically unlocked after creation. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DefaultKeyChainChangeSettings | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Mi, 4. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Displays a dialog box enabling the user to change the name, password, or settings of the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Typically, your application should not call the ChangeSettings function. You would only call ChangeSettings in response to a user's request to change keychain settings, name, or password. Note that you cannot change a keychain passphrase directly. You must call ChangeSettings and allow the user to change it. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DefaultKeyChainStatus as integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Returns the current state of the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
LastError is set. Constants:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FindGenericPassword(parameter as KeyChainRequest) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Mi, 4. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Finds the first Internet password in the default keychain that matches the specified parameters. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The FindGenericPassword function finds the first password item which matches the attributes you provide. FindGenericPassword returns a reference to the found item. FindGenericPassword will automatically call the unlock function to display the Unlock Keychain dialog box if the keychain containing the password is currently locked. From the KeyChainRequest object, the properties servicename, accountname, and password. (password is set if the function is successfull.) servicename and accountname maybe "" to match any value. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FindInternetPassword(parameter as KeyChainRequest) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Finds the first Internet password in the default keychain that matches the specified parameters. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The FindInternetPassword function finds the first Internet password item which matches the attributes you provide. FindInternetPassword returns a reference to the found item. FindInternetPassword will automatically call the unlock function to display the Unlock Keychain dialog box if the keychain containing the password is currently locked. From the KeyChainRequest object, the properties servername, securitydomain, accountname, port, protocol, authtype and password. (password is set if the function is successfull.) Servername, securitydomain, protocol, authtype and accountname maybe "" to match any value. Port may be 0 to match any port value. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FindInternetPasswordWithPath(parameter as KeyChainRequest) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Finds the first Internet password in the default keychain that matches the specified parameters. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The FindInternetPasswordWithPath function finds the first Internet password item which matches the attributes you provide. FindInternetPasswordWithPath returns a reference to the found item. FindInternetPasswordWithPath will automatically call the unlock function to display the Unlock Keychain dialog box if the keychain containing the password is currently locked. From the KeyChainRequest object, the properties servername, securitydomain, accountname, path, port, protocol, authtype and password. (password is set if the function is successfull.) Servername, securitydomain, path, protocol, authtype and accountname maybe "" to match any value. Port may be 0 to match any port value. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InteractionAllowed as boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Allways false. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Wether the Keychain manager is allowed to show dialogs to ask the user. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
KeyChainFindFirst(kc as KeyChain) as KeyChainSearchItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Finds the first keychain item in a specified keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The parameter kc is the keychain that you wish to search. If you pass a locked keychain, the Unlock Keychain dialog box is displayed. If you pass nil, KeyChainFindFirst search all unlocked keychains. Returns an object of the KeyChainSearchItem class with the first found item in the item property. Returns nil on any error. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LastError as integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The number representing the last error reported. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
If a function is not available (e.g. KeyChain Manager not installed), the lasterror property has the value -1. If the plugin was unable to allocate memory, -2 is returned. KeyChain Manager error codes:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LockDefaultKeyChain | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Mi, 4. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Locks the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Your application should not call LockDefaultKeyChain unless you are responding to a user's request to lock a keychain. In general, you should leave the keychain unlocked so that the user does not have to unlock it again in another application. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NewKeyChainItemMemory(class as string,creator as string,data as memoryblock) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Creates a new KeyChainItem Object with the given data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Values for the class parameter which defines the type of the item:
The creator parameter is the creator code of the application that owns this item. Data is the data which is saved inside the item. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NewKeyChainItemString(class as string,creator as string,data as string) as KeyChainItem | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | Di, 3. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Creates a new KeyChainItem Object with the given data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Values for the class parameter which defines the type of the item:
The creator parameter is the creator code of the application that owns this item. Data is the data which is saved inside the item. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OpenDefaultKeyChain as KeyChain | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Obtains the default keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OpenIndexedKeyChain(index as integer) as KeyChain | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Obtains the reference to an indexed keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Pass a value between 1 and the number returned by the function CountKeychains for the index parameter. To guarantee correct operation, you should call the function CountKeychains once before calling OpenIndexedKeyChain. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UnlockDefaultKeyChain(password as string) as boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Displays a dialog box that prompts the user for a password in order before unlocking keychain. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
In most cases, your application does not need to call the Unlock functions directly, since most Keychain Manager functions that require an unlocked keychain call Unlock automatically. If your application needs to verify that a keychain is unlocked, use the property DefaultKeyChainStatus. LastError is set. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Version as integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, KeyChain | Plugin version: 2.6 | So, 1. Sep 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Allways 0. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The version number of the keychain manager. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Lasterror is set. |
Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.